projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5549d22
)
Orion5x: bugfix: window size (mis)calculation
author
Albert Aribaud
<[
[email protected]
]>
Thu, 26 Aug 2010 08:35:19 +0000
(14:05 +0530)
committer
Prafulla Wadaskar
<
[email protected]
>
Thu, 26 Aug 2010 08:35:19 +0000
(14:05 +0530)
Fix orion5x_winctrl_calcsize() off-by-1 bug which caused mapping
windows to be cut by half. This afected all windows including NOR
flash (causing half the flash to be unaccessible) but DRAM was and
still is fine as its size is determined otherwise.
Signed-off-by: Albert Aribaud <
[email protected]
>
arch/arm/cpu/arm926ejs/orion5x/cpu.c
patch
|
blob
|
history
diff --git
a/arch/arm/cpu/arm926ejs/orion5x/cpu.c
b/arch/arm/cpu/arm926ejs/orion5x/cpu.c
index 3740e33e9d8d9cad30a3e2b4b07d904825d06eb4..260f88b46e01da7d875fa26bd417c87caa7a04c1 100644
(file)
--- a/
arch/arm/cpu/arm926ejs/orion5x/cpu.c
+++ b/
arch/arm/cpu/arm926ejs/orion5x/cpu.c
@@
-61,7
+61,7
@@
unsigned int orion5x_winctrl_calcsize(unsigned int sizeval)
unsigned int j = 0;
u32 val = sizeval >> 1;
- for (i = 0; val > 0x10000; i++) {
+ for (i = 0; val >
=
0x10000; i++) {
j |= (1 << i);
val = val >> 1;
}